Skip to content

Treat pyhive as a synchronous package and add a regression test#151

Open
hedgert wants to merge 1 commit into
Pyhass:devfrom
hedgert:investigate-pyhive-sync
Open

Treat pyhive as a synchronous package and add a regression test#151
hedgert wants to merge 1 commit into
Pyhass:devfrom
hedgert:investigate-pyhive-sync

Conversation

@hedgert

@hedgert hedgert commented Jul 22, 2026

Copy link
Copy Markdown

import pyhive currently exposes the asynchronous API because src/init.py only checks for name == "pyhiveapi".

This change treats both pyhive and pyhiveapi as synchronous packages so that import pyhive exposes the synchronous HiveAuth and HiveApi classes.

Testing
Added a regression test verifying that pyhive exposes the synchronous classes.
Confirmed the new test fails without this change.
Confirmed the test passes with this change.
Ran the existing test suite successfully.

Treat both `pyhive` and `pyhiveapi` as synchronous packages.

Previously `import pyhive` exposed the asynchronous API because
`src/__init__.py` only checked for `__name__ == "pyhiveapi"`.

Add a regression test to verify that `pyhive` exposes the synchronous
`HiveAuth` and `HiveApi` classes. The test fails without this change and
passes with it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant